package ModelLayer;

import java.util.Date;

public class Loan {
    private int id;
    private Date borrowDate;
    private boolean state;
    private Person person;
    private Copy copy;

    public Loan(Person person, Copy copy){
        this.person = person;
        this.copy = copy;
        borrowDate = new Date();
    }

    public Loan(){}

    public Copy getCopy() {
        return copy;
    }

    public Person getPerson() {
        return person;
    }

    public long getId() {
        return id;
    }

    public Date getBorrowDate() {
        return borrowDate;
    }

    public void setCopy(Copy copy) {
        this.copy = copy;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public void setBorrowDate(Date borrowDate) {
        this.borrowDate = borrowDate;
    }

    public boolean state() {
        return state;
    }

}
